package com.ds.admin.org.person.role;

import com.ds.admin.iorg.person.role.IPersonRoleTabs;
import com.ds.esb.config.EsbBeanAnnotation;
import com.ds.esd.tool.ui.component.list.TreeListItem;
import com.ds.org.PersonRoleType;
import com.ds.web.annotation.Caption;
import com.ds.web.annotation.Pid;

@EsbBeanAnnotation
public class PersonRoleTabs extends TreeListItem implements IPersonRoleTabs {

    @Pid
    String personId;
    @Pid
    PersonRoleType personRoleType;
    @Pid
    String roleId;
    @Caption
    String name;



    public PersonRoleTabs(PersonRoleType personRoleType, String personId) {
        this.name = personRoleType.getName();
        this.personRoleType = personRoleType;
        this.imageClass = personRoleType.getImageClass();
        this.personId = personId;
        this.roleId = personRoleType.getType();
    }

    @Override
    public String getName() {
        return name;
    }


    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    @Override
    public String getPersonId() {
        return personId;
    }

    public void setPersonId(String personId) {
        this.personId = personId;
    }

    @Override
    public PersonRoleType getPersonRoleType() {
        return personRoleType;
    }

    public void setPersonRoleType(PersonRoleType personRoleType) {
        this.personRoleType = personRoleType;
    }

}
